javascript generate random number

58

angular random number between 1 and 10 -

function randomNumber(min, max) {
  return Math.random() * (max - min) + min;
}

Comments

Submit
0 Comments